package com.huw.cameramanagers;

import java.util.ArrayList;

import org.anddev.andengine.entity.scene.Scene;
import org.anddev.andengine.entity.shape.Shape;
import org.anddev.andengine.extension.physics.box2d.PhysicsWorld;

import com.badlogic.gdx.physics.box2d.FixtureDef;
import com.light.gamecomponents.IGameComponents;

public class CameraStoper implements IGameComponents{
	protected Shape m_shape;
	protected String m_textureName;
	protected FixtureDef m_fixtureDef;

	public static ArrayList<CameraStoper> cameraStoperList = new ArrayList<CameraStoper>();
	
	public Shape getShape()
	{
		return m_shape;
	}
	
	public static void ArrayListClear()
	{
		cameraStoperList.clear();
	}


	public CameraStoper(Shape shape)
	{
		m_shape = shape;
	}
	@Override
	public void onLoadResources() {
		
	}
	@Override
	public void onLoadScene(Scene scene, PhysicsWorld physicsWorld) { 

		//scene.attachChild(m_shape);
		cameraStoperList.add(this);
	}
	
	static public void clearStoper()
	{
		cameraStoperList.clear();
	}
	
	@Override
	public void removeFromScene(Scene scene, PhysicsWorld physicsWorld) {
		cameraStoperList.remove(this);
		//scene.detachChild(m_shape);
	}

	@Override
	public void onLoadEngine() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void unLoadResources() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void rotate(float angle) {
		// TODO Auto-generated method stub
		
	}

}
